package org.orcas.kocl.compiler.util;

public class Validator {
	
	public static boolean equals(String s1, String s2){
		
		if ((s1 == null) && (s2 == null)){
			return true;
		}
		else if (s1 == null || s2 == null){
			return false;
		}
		else {
			return s1.equals(s2);
		}
	}
	
	public static boolean isNull(String s) {
         if (s == null) {
             return true;
         }
 
         s = s.trim();
 
         if ((s.equals(StringPool.NULL)) || (s.equals(StringPool.BLANK))) {
             return true;
         }
 
         return false;
     }

}
